<?php
    include_once '../../../controlador/php/conexion/Conexion10.php';
    $con = new Conexion10();
    
    $serv = "select * from GENDEPEND order by GDPNOMBRE";
    
    $resul = $con->query($serv);
    
    while($res = mssql_fetch_array($resul)){
        $listas[] = array_map(utf8_encode,$res);
    }
    
    print_r(json_encode($listas));
    
    
    $con->cerrarConexion();
    
?>
